/* Generated By:JavaCC: Do not edit this line. CPPParserTokenManager.java */
package net.sourceforge.pmd.cpd.cppast;
public class CPPParserTokenManager implements CPPParserConstants
{
public static java.io.PrintStream debugStream = System.out;
public static void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private static final int jjStopStringLiteralDfa_0(int pos, long active0, long active1, long active2)
{
switch (pos)
{
case 0:
if ((active0 & 0x8000000000000000L) != 0L || (active1 & 0x1ffffffffffffL) != 0L || (active2 & 0x2L) != 0L)
{
jjmatchedKind = 130;
return 33;
}
if ((active0 & 0x2800000002000000L) != 0L)
return 1;
return -1;
case 1:
if ((active1 & 0x20300L) != 0L)
return 33;
if ((active0 & 0x8000000000000000L) != 0L || (active1 & 0x1fffffffdfcffL) != 0L || (active2 & 0x2L) != 0L)
{
if (jjmatchedPos != 1)
{
jjmatchedKind = 130;
jjmatchedPos = 1;
}
return 33;
}
return -1;
case 2:
if ((active1 & 0x2000284000L) != 0L)
return 33;
if ((active0 & 0x8000000000000000L) != 0L || (active1 & 0x1ffdfffd5beffL) != 0L || (active2 & 0x2L) != 0L)
{
jjmatchedKind = 130;
jjmatchedPos = 2;
return 33;
}
return -1;
case 3:
if ((active1 & 0x1bbcfffc4b2f5L) != 0L || (active2 & 0x2L) != 0L)
{
jjmatchedKind = 130;
jjmatchedPos = 3;
return 33;
}
if ((active0 & 0x8000000000000000L) != 0L || (active1 & 0x441000110c0aL) != 0L)
return 33;
return -1;
case 4:
if ((active1 & 0x1908210002015L) != 0L)
return 33;
if ((active1 & 0x2b4defc492e0L) != 0L || (active2 & 0x2L) != 0L)
{
jjmatchedKind = 130;
jjmatchedPos = 4;
return 33;
}
return -1;
case 5:
if ((active1 & 0x5e9049280L) != 0L)
return 33;
if ((active1 & 0x2b4806c00060L) != 0L || (active2 & 0x2L) != 0L)
{
jjmatchedKind = 130;
jjmatchedPos = 5;
return 33;
}
return -1;
case 6:
if ((active1 & 0x290806800020L) != 0L)
{
jjmatchedKind = 130;
jjmatchedPos = 6;
return 33;
}
if ((active1 & 0x24000400040L) != 0L || (active2 & 0x2L) != 0L)
return 33;
return -1;
case 7:
if ((active1 & 0x2800000L) != 0L)
{
jjmatchedKind = 130;
jjmatchedPos = 7;
return 33;
}
if ((active1 & 0x290804000020L) != 0L)
return 33;
return -1;
case 8:
if ((active1 & 0x800000L) != 0L)
return 33;
if ((active1 & 0x2000000L) != 0L)
{
jjmatchedKind = 130;
jjmatchedPos = 8;
return 33;
}
return -1;
default :
return -1;
}
}
private static final int jjStartNfa_0(int pos, long active0, long active1, long active2)
{
return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1, active2), pos + 1);
}
static private final int jjStopAtPos(int pos, int kind)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
return pos + 1;
}
static private final int jjStartNfaWithStates_0(int pos, int kind, int state)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return pos + 1; }
return jjMoveNfa_0(state, pos + 1);
}
static private final int jjMoveStringLiteralDfa0_0()
{
switch(curChar)
{
case 13:
return jjMoveStringLiteralDfa1_0(0x8L, 0x0L, 0x0L);
case 33:
jjmatchedKind = 58;
return jjMoveStringLiteralDfa1_0(0x80000000000L, 0x0L, 0x0L);
case 35:
return jjStopAtPos(0, 7);
case 37:
jjmatchedKind = 54;
return jjMoveStringLiteralDfa1_0(0x20000000L, 0x0L, 0x0L);
case 38:
jjmatchedKind = 41;
return jjMoveStringLiteralDfa1_0(0x4400000000L, 0x0L, 0x0L);
case 40:
return jjStopAtPos(0, 18);
case 41:
return jjStopAtPos(0, 19);
case 42:
jjmatchedKind = 52;
return jjMoveStringLiteralDfa1_0(0x8000000L, 0x0L, 0x0L);
case 43:
jjmatchedKind = 50;
return jjMoveStringLiteralDfa1_0(0x80000040000000L, 0x0L, 0x0L);
case 44:
return jjStopAtPos(0, 23);
case 45:
jjmatchedKind = 51;
return jjMoveStringLiteralDfa1_0(0x5100000080000000L, 0x0L, 0x0L);
case 46:
jjmatchedKind = 59;
return jjMoveStringLiteralDfa1_0(0x2000000002000000L, 0x0L, 0x0L);
case 47:
jjmatchedKind = 53;
return jjMoveStringLiteralDfa1_0(0x10000060L, 0x0L, 0x0L);
case 58:
jjmatchedKind = 21;
return jjMoveStringLiteralDfa1_0(0x100000L, 0x0L, 0x0L);
case 59:
return jjStopAtPos(0, 22);
case 60:
jjmatchedKind = 44;
return jjMoveStringLiteralDfa1_0(0x1400100000000L, 0x0L, 0x0L);
case 61:
jjmatchedKind = 26;
return jjMoveStringLiteralDfa1_0(0x40000000000L, 0x0L, 0x0L);
case 62:
jjmatchedKind = 45;
return jjMoveStringLiteralDfa1_0(0x2800200000000L, 0x0L, 0x0L);
case 63:
return jjStopAtPos(0, 24);
case 91:
return jjStopAtPos(0, 16);
case 93:
return jjStopAtPos(0, 17);
case 94:
jjmatchedKind = 40;
return jjMoveStringLiteralDfa1_0(0x800000000L, 0x0L, 0x0L);
case 97:
return jjMoveStringLiteralDfa1_0(0x8000000000000000L, 0x0L, 0x0L);
case 98:
return jjMoveStringLiteralDfa1_0(0x0L, 0x1L, 0x0L);
case 99:
return jjMoveStringLiteralDfa1_0(0x0L, 0x20000003eL, 0x0L);
case 100:
return jjMoveStringLiteralDfa1_0(0x0L, 0x3c0L, 0x0L);
case 101:
return jjMoveStringLiteralDfa1_0(0x0L, 0x1c00L, 0x0L);
case 102:
return jjMoveStringLiteralDfa1_0(0x0L, 0x80000000e000L, 0x2L);
case 103:
return jjMoveStringLiteralDfa1_0(0x0L, 0x10000L, 0x0L);
case 105:
return jjMoveStringLiteralDfa1_0(0x0L, 0xe0000L, 0x0L);
case 108:
return jjMoveStringLiteralDfa1_0(0x0L, 0x100000L, 0x0L);
case 110:
return jjMoveStringLiteralDfa1_0(0x0L, 0x200000L, 0x0L);
case 111:
return jjMoveStringLiteralDfa1_0(0x0L, 0x200000000000L, 0x0L);
case 112:
return jjMoveStringLiteralDfa1_0(0x0L, 0x1c00000L, 0x0L);
case 114:
return jjMoveStringLiteralDfa1_0(0x0L, 0xe000000L, 0x0L);
case 115:
return jjMoveStringLiteralDfa1_0(0x0L, 0x5f0000000L, 0x0L);
case 116:
return jjMoveStringLiteralDfa1_0(0x0L, 0x1407800000000L, 0x0L);
case 117:
return jjMoveStringLiteralDfa1_0(0x0L, 0x18000000000L, 0x0L);
case 118:
return jjMoveStringLiteralDfa1_0(0x0L, 0xe0000000000L, 0x0L);
case 119:
return jjMoveStringLiteralDfa1_0(0x0L, 0x100000000000L, 0x0L);
case 123:
return jjStopAtPos(0, 14);
case 124:
jjmatchedKind = 39;
return jjMoveStringLiteralDfa1_0(0x3000000000L, 0x0L, 0x0L);
case 125:
return jjStopAtPos(0, 15);
case 126:
return jjStopAtPos(0, 57);
default :
return jjMoveNfa_0(32, 0);
}
}
static private final int jjMoveStringLiteralDfa1_0(long active0, long active1, long active2)
{
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(0, active0, active1, active2);
return 1;
}
switch(curChar)
{
case 10:
if ((active0 & 0x8L) != 0L)
return jjStopAtPos(1, 3);
break;
case 38:
if ((active0 & 0x4000000000L) != 0L)
return jjStopAtPos(1, 38);
break;
case 42:
if ((active0 & 0x40L) != 0L)
return jjStopAtPos(1, 6);
else if ((active0 & 0x2000000000000000L) != 0L)
return jjStopAtPos(1, 61);
break;
case 43:
if ((active0 & 0x80000000000000L) != 0L)
return jjStopAtPos(1, 55);
break;
case 45:
if ((active0 & 0x100000000000000L) != 0L)
return jjStopAtPos(1, 56);
break;
case 46:
return jjMoveStringLiteralDfa2_0(active0, 0x2000000L, active1, 0L, active2, 0L);
case 47:
if ((active0 & 0x20L) != 0L)
return jjStopAtPos(1, 5);
break;
case 58:
if ((active0 & 0x100000L) != 0L)
return jjStopAtPos(1, 20);
break;
case 60:
if ((active0 & 0x1000000000000L) != 0L)
{
jjmatchedKind = 48;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x100000000L, active1, 0L, active2, 0L);
case 61:
if ((active0 & 0x8000000L) != 0L)
return jjStopAtPos(1, 27);
else if ((active0 & 0x10000000L) != 0L)
return jjStopAtPos(1, 28);
else if ((active0 & 0x20000000L) != 0L)
return jjStopAtPos(1, 29);
else if ((active0 & 0x40000000L) != 0L)
return jjStopAtPos(1, 30);
else if ((active0 & 0x80000000L) != 0L)
return jjStopAtPos(1, 31);
else if ((active0 & 0x400000000L) != 0L)
return jjStopAtPos(1, 34);
else if ((active0 & 0x800000000L) != 0L)
return jjStopAtPos(1, 35);
else if ((active0 & 0x1000000000L) != 0L)
return jjStopAtPos(1, 36);
else if ((active0 & 0x40000000000L) != 0L)
return jjStopAtPos(1, 42);
else if ((active0 & 0x80000000000L) != 0L)
return jjStopAtPos(1, 43);
else if ((active0 & 0x400000000000L) != 0L)
return jjStopAtPos(1, 46);
else if ((active0 & 0x800000000000L) != 0L)
return jjStopAtPos(1, 47);
break;
case 62:
if ((active0 & 0x2000000000000L) != 0L)
{
jjmatchedKind = 49;
jjmatchedPos = 1;
}
else if ((active0 & 0x1000000000000000L) != 0L)
{
jjmatchedKind = 60;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x4000000200000000L, active1, 0L, active2, 0L);
case 97:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x800000000006L, active2, 0L);
case 101:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80e2000c0L, active2, 0L);
case 102:
if ((active1 & 0x20000L) != 0L)
return jjStartNfaWithStates_0(1, 81, 33);
break;
case 104:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x1101010000008L, active2, 0L);
case 105:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x20060000000L, active2, 0x2L);
case 108:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x200002400L, active2, 0L);
case 110:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x180000c0800L, active2, 0L);
case 111:
if ((active1 & 0x100L) != 0L)
{
jjmatchedKind = 72;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0xc0000114230L, active2, 0L);
case 112:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x200000000000L, active2, 0L);
case 114:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x402000c08001L, active2, 0L);
case 116:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x180000000L, active2, 0L);
case 117:
return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000000L, active1, 0x1000000L, active2, 0L);
case 119:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x400000000L, active2, 0L);
case 120:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x1000L, active2, 0L);
case 121:
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4000000000L, active2, 0L);
case 124:
if ((active0 & 0x2000000000L) != 0L)
return jjStopAtPos(1, 37);
break;
default :
break;
}
return jjStartNfa_0(0, active0, active1, active2);
}
static private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1, long old2, long active2)
{
if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
return jjStartNfa_0(0, old0, old1, old2);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(1, active0, active1, active2);
return 2;
}
switch(curChar)
{
case 42:
if ((active0 & 0x4000000000000000L) != 0L)
return jjStopAtPos(2, 62);
break;
case 46:
if ((active0 & 0x2000000L) != 0L)
return jjStopAtPos(2, 25);
break;
case 61:
if ((active0 & 0x100000000L) != 0L)
return jjStopAtPos(2, 32);
else if ((active0 & 0x200000000L) != 0L)
return jjStopAtPos(2, 33);
break;
case 97:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x280000008L, active2, 0L);
case 98:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000000L, active2, 0L);
case 100:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2000000L, active2, 0L);
case 101:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x200000000001L, active2, 0L);
case 102:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x40L, active2, 0L);
case 103:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x24000000L, active2, 0L);
case 105:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x149400408000L, active2, 0L);
case 108:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x880000040080L, active2, 0L);
case 109:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x800000000L, active2, 0L);
case 110:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x100030L, active2, 0x2L);
case 111:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x10802000L, active2, 0L);
case 112:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4000000000L, active2, 0L);
case 114:
if ((active1 & 0x4000L) != 0L)
return jjStartNfaWithStates_0(2, 78, 33);
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1020100000000L, active2, 0L);
case 115:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x10000000402L, active2, 0L);
case 116:
if ((active1 & 0x80000L) != 0L)
return jjStartNfaWithStates_0(2, 83, 33);
return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, active1, 0x8011004L, active2, 0L);
case 117:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x400000000a00L, active2, 0L);
case 119:
if ((active1 & 0x200000L) != 0L)
return jjStartNfaWithStates_0(2, 85, 33);
break;
case 121:
if ((active1 & 0x2000000000L) != 0L)
return jjStartNfaWithStates_0(2, 101, 33);
break;
case 122:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x40000000L, active2, 0L);
default :
break;
}
return jjStartNfa_0(1, active0, active1, active2);
}
static private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1, long old2, long active2)
{
if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
return jjStartNfa_0(1, old0, old1, old2);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(2, active0, active1, active2);
return 3;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80000002041L, active2, 0x2L);
case 98:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x200L, active2, 0L);
case 99:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x4L, active2, 0L);
case 100:
if ((active1 & 0x40000000000L) != 0L)
return jjStartNfaWithStates_0(3, 106, 33);
break;
case 101:
if ((active1 & 0x2L) != 0L)
return jjStartNfaWithStates_0(3, 65, 33);
else if ((active1 & 0x400L) != 0L)
return jjStartNfaWithStates_0(3, 74, 33);
else if ((active1 & 0x400000000000L) != 0L)
return jjStartNfaWithStates_0(3, 110, 33);
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x4042009080L, active2, 0L);
case 103:
if ((active1 & 0x100000L) != 0L)
return jjStartNfaWithStates_0(3, 84, 33);
break;
case 105:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x10004040000L, active2, 0L);
case 108:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x100001000000L, active2, 0L);
case 109:
if ((active1 & 0x800L) != 0L)
return jjStartNfaWithStates_0(3, 75, 33);
break;
case 110:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x20000000L, active2, 0L);
case 111:
if ((active0 & 0x8000000000000000L) != 0L)
return jjStartNfaWithStates_0(3, 63, 33);
else if ((active1 & 0x10000L) != 0L)
return jjStartNfaWithStates_0(3, 80, 33);
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x1008000000000L, active2, 0L);
case 112:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000000L, active2, 0L);
case 114:
if ((active1 & 0x8L) != 0L)
return jjStartNfaWithStates_0(3, 67, 33);
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x200010000000L, active2, 0L);
case 115:
if ((active1 & 0x1000000000L) != 0L)
return jjStartNfaWithStates_0(3, 100, 33);
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800200000010L, active2, 0L);
case 116:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x20480800020L, active2, 0L);
case 117:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x108000000L, active2, 0L);
case 118:
return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x400000L, active2, 0L);
default :
break;
}
return jjStartNfa_0(2, active0, active1, active2);
}
static private final int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1, long old2, long active2)
{
if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
return jjStartNfa_0(2, old0, old1, old2);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(3, 0L, active1, active2);
return 4;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa5_0(active1, 0x200000400000L, active2, 0L);
case 99:
return jjMoveStringLiteralDfa5_0(active1, 0x502000000L, active2, 0L);
case 100:
return jjMoveStringLiteralDfa5_0(active1, 0x4000000000L, active2, 0L);
case 101:
if ((active1 & 0x100000000000L) != 0L)
return jjStartNfaWithStates_0(4, 108, 33);
else if ((active1 & 0x800000000000L) != 0L)
return jjStartNfaWithStates_0(4, 111, 33);
return jjMoveStringLiteralDfa5_0(active1, 0x20800000L, active2, 0L);
case 103:
return jjMoveStringLiteralDfa5_0(active1, 0x10000000000L, active2, 0L);
case 104:
if ((active1 & 0x4L) != 0L)
return jjStartNfaWithStates_0(4, 66, 33);
break;
case 105:
return jjMoveStringLiteralDfa5_0(active1, 0x81000020L, active2, 0L);
case 107:
if ((active1 & 0x1L) != 0L)
return jjStartNfaWithStates_0(4, 64, 33);
break;
case 108:
return jjMoveStringLiteralDfa5_0(active1, 0x800000200L, active2, 0x2L);
case 110:
if ((active1 & 0x8000000000L) != 0L)
return jjStartNfaWithStates_0(4, 103, 33);
return jjMoveStringLiteralDfa5_0(active1, 0x48000L, active2, 0L);
case 111:
return jjMoveStringLiteralDfa5_0(active1, 0x40000000L, active2, 0L);
case 114:
return jjMoveStringLiteralDfa5_0(active1, 0x8001000L, active2, 0L);
case 115:
if ((active1 & 0x200000000L) != 0L)
return jjStartNfaWithStates_0(4, 97, 33);
return jjMoveStringLiteralDfa5_0(active1, 0x4000000L, active2, 0L);
case 116:
if ((active1 & 0x10L) != 0L)
return jjStartNfaWithStates_0(4, 68, 33);
else if ((active1 & 0x2000L) != 0L)
return jjStartNfaWithStates_0(4, 77, 33);
else if ((active1 & 0x10000000L) != 0L)
return jjStartNfaWithStates_0(4, 92, 33);
return jjMoveStringLiteralDfa5_0(active1, 0x80000000080L, active2, 0L);
case 117:
return jjMoveStringLiteralDfa5_0(active1, 0x20000000040L, active2, 0L);
case 119:
if ((active1 & 0x1000000000000L) != 0L)
return jjStartNfaWithStates_0(4, 112, 33);
break;
default :
break;
}
return jjStartNfa_0(3, 0L, active1, active2);
}
static private final int jjMoveStringLiteralDfa5_0(long old1, long active1, long old2, long active2)
{
if (((active1 &= old1) | (active2 &= old2)) == 0L)
return jjStartNfa_0(3, 0L, old1, old2);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(4, 0L, active1, active2);
return 5;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa6_0(active1, 0x20800000000L, active2, 0L);
case 99:
if ((active1 & 0x1000000L) != 0L)
return jjStartNfaWithStates_0(5, 88, 33);
else if ((active1 & 0x80000000L) != 0L)
return jjStartNfaWithStates_0(5, 95, 33);
return jjMoveStringLiteralDfa6_0(active1, 0x800000L, active2, 0L);
case 100:
if ((active1 & 0x8000L) != 0L)
return jjStartNfaWithStates_0(5, 79, 33);
else if ((active1 & 0x20000000L) != 0L)
return jjStartNfaWithStates_0(5, 93, 33);
break;
case 101:
if ((active1 & 0x80L) != 0L)
return jjStartNfaWithStates_0(5, 71, 33);
else if ((active1 & 0x200L) != 0L)
return jjStartNfaWithStates_0(5, 73, 33);
else if ((active1 & 0x40000L) != 0L)
return jjStartNfaWithStates_0(5, 82, 33);
return jjMoveStringLiteralDfa6_0(active1, 0x4000000000L, active2, 0L);
case 102:
if ((active1 & 0x40000000L) != 0L)
return jjStartNfaWithStates_0(5, 94, 33);
break;
case 104:
if ((active1 & 0x400000000L) != 0L)
return jjStartNfaWithStates_0(5, 98, 33);
break;
case 105:
return jjMoveStringLiteralDfa6_0(active1, 0x80000000000L, active2, 0L);
case 108:
return jjMoveStringLiteralDfa6_0(active1, 0x2000040L, active2, 0x2L);
case 110:
if ((active1 & 0x1000L) != 0L)
return jjStartNfaWithStates_0(5, 76, 33);
else if ((active1 & 0x8000000L) != 0L)
return jjStartNfaWithStates_0(5, 91, 33);
return jjMoveStringLiteralDfa6_0(active1, 0x10000000020L, active2, 0L);
case 116:
if ((active1 & 0x100000000L) != 0L)
return jjStartNfaWithStates_0(5, 96, 33);
return jjMoveStringLiteralDfa6_0(active1, 0x200004400000L, active2, 0L);
default :
break;
}
return jjStartNfa_0(4, 0L, active1, active2);
}
static private final int jjMoveStringLiteralDfa6_0(long old1, long active1, long old2, long active2)
{
if (((active1 &= old1) | (active2 &= old2)) == 0L)
return jjStartNfa_0(4, 0L, old1, old2);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(5, 0L, active1, active2);
return 6;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa7_0(active1, 0x2000000L, active2, 0L);
case 101:
if ((active1 & 0x400000L) != 0L)
return jjStartNfaWithStates_0(6, 86, 33);
return jjMoveStringLiteralDfa7_0(active1, 0x10004000000L, active2, 0L);
case 102:
if ((active1 & 0x4000000000L) != 0L)
return jjStartNfaWithStates_0(6, 102, 33);
break;
case 108:
if ((active1 & 0x20000000000L) != 0L)
return jjStartNfaWithStates_0(6, 105, 33);
return jjMoveStringLiteralDfa7_0(active1, 0x80000000000L, active2, 0L);
case 111:
return jjMoveStringLiteralDfa7_0(active1, 0x200000000000L, active2, 0L);
case 116:
if ((active1 & 0x40L) != 0L)
return jjStartNfaWithStates_0(6, 70, 33);
return jjMoveStringLiteralDfa7_0(active1, 0x800800000L, active2, 0L);
case 117:
return jjMoveStringLiteralDfa7_0(active1, 0x20L, active2, 0L);
case 121:
if ((active2 & 0x2L) != 0L)
return jjStartNfaWithStates_0(6, 129, 33);
break;
default :
break;
}
return jjStartNfa_0(5, 0L, active1, active2);
}
static private final int jjMoveStringLiteralDfa7_0(long old1, long active1, long old2, long active2)
{
if (((active1 &= old1) | (active2 &= old2)) == 0L)
return jjStartNfa_0(5, 0L, old1, old2);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(6, 0L, active1, 0L);
return 7;
}
switch(curChar)
{
case 100:
if ((active1 & 0x10000000000L) != 0L)
return jjStartNfaWithStates_0(7, 104, 33);
break;
case 101:
if ((active1 & 0x20L) != 0L)
return jjStartNfaWithStates_0(7, 69, 33);
else if ((active1 & 0x800000000L) != 0L)
return jjStartNfaWithStates_0(7, 99, 33);
else if ((active1 & 0x80000000000L) != 0L)
return jjStartNfaWithStates_0(7, 107, 33);
return jjMoveStringLiteralDfa8_0(active1, 0x800000L);
case 114:
if ((active1 & 0x4000000L) != 0L)
return jjStartNfaWithStates_0(7, 90, 33);
else if ((active1 & 0x200000000000L) != 0L)
return jjStartNfaWithStates_0(7, 109, 33);
return jjMoveStringLiteralDfa8_0(active1, 0x2000000L);
default :
break;
}
return jjStartNfa_0(6, 0L, active1, 0L);
}
static private final int jjMoveStringLiteralDfa8_0(long old1, long active1)
{
if (((active1 &= old1)) == 0L)
return jjStartNfa_0(6, 0L, old1, 0L);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(7, 0L, active1, 0L);
return 8;
}
switch(curChar)
{
case 100:
if ((active1 & 0x800000L) != 0L)
return jjStartNfaWithStates_0(8, 87, 33);
break;
case 101:
return jjMoveStringLiteralDfa9_0(active1, 0x2000000L);
default :
break;
}
return jjStartNfa_0(7, 0L, active1, 0L);
}
static private final int jjMoveStringLiteralDfa9_0(long old1, long active1)
{
if (((active1 &= old1)) == 0L)
return jjStartNfa_0(7, 0L, old1, 0L);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(8, 0L, active1, 0L);
return 9;
}
switch(curChar)
{
case 100:
if ((active1 & 0x2000000L) != 0L)
return jjStartNfaWithStates_0(9, 89, 33);
break;
default :
break;
}
return jjStartNfa_0(8, 0L, active1, 0L);
}
static private final void jjCheckNAdd(int state)
{
if (jjrounds[state] != jjround)
{
jjstateSet[jjnewStateCnt++] = state;
jjrounds[state] = jjround;
}
}
static private final void jjAddStates(int start, int end)
{
do {
jjstateSet[jjnewStateCnt++] = jjnextStates[start];
} while (start++ != end);
}
static private final void jjCheckNAddTwoStates(int state1, int state2)
{
jjCheckNAdd(state1);
jjCheckNAdd(state2);
}
static private final void jjCheckNAddStates(int start, int end)
{
do {
jjCheckNAdd(jjnextStates[start]);
} while (start++ != end);
}
static private final void jjCheckNAddStates(int start)
{
jjCheckNAdd(jjnextStates[start]);
jjCheckNAdd(jjnextStates[start + 1]);
}
static final long[] jjbitVec0 = {
0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
};
static private final int jjMoveNfa_0(int startState, int curPos)
{
int[] nextStates;
int startsAt = 0;
jjnewStateCnt = 82;
int i = 1;
jjstateSet[0] = startState;
int j, kind = 0x7fffffff;
for (;;)
{
if (++jjround == 0x7fffffff)
ReInitRounds();
if (curChar < 64)
{
long l = 1L << curChar;
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 32:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(0, 5);
else if (curChar == 34)
jjCheckNAddStates(6, 8);
else if (curChar == 39)
jjAddStates(9, 10);
else if (curChar == 46)
jjCheckNAdd(1);
if ((0x3fe000000000000L & l) != 0L)
{
if (kind > 117)
kind = 117;
jjCheckNAddStates(11, 18);
}
else if (curChar == 48)
jjAddStates(19, 22);
if (curChar == 48)
{
if (kind > 113)
kind = 113;
jjCheckNAddStates(23, 30);
}
break;
case 0:
if (curChar == 46)
jjCheckNAdd(1);
break;
case 1:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 125)
kind = 125;
jjCheckNAddStates(31, 33);
break;
case 3:
if ((0x280000000000L & l) != 0L)
jjCheckNAdd(4);
break;
case 4:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 125)
kind = 125;
jjCheckNAddTwoStates(4, 5);
break;
case 6:
if (curChar == 39)
jjAddStates(9, 10);
break;
case 7:
if ((0xffffff7fffffdbffL & l) != 0L)
jjCheckNAdd(8);
break;
case 8:
if (curChar == 39 && kind > 127)
kind = 127;
break;
case 10:
if ((0x8000008400000000L & l) != 0L)
jjCheckNAdd(8);
break;
case 11:
if (curChar == 48)
jjCheckNAddTwoStates(12, 8);
break;
case 12:
if ((0xff000000000000L & l) != 0L)
jjCheckNAddTwoStates(12, 8);
break;
case 13:
if ((0x3fe000000000000L & l) != 0L)
jjCheckNAddTwoStates(14, 8);
break;
case 14:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(14, 8);
break;
case 15:
if (curChar == 48)
jjAddStates(34, 35);
break;
case 17:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(17, 8);
break;
case 19:
if (curChar == 34)
jjCheckNAddStates(6, 8);
break;
case 20:
if ((0xfffffffbffffdbffL & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 22:
if ((0x8000008400000000L & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 23:
if (curChar == 34 && kind > 128)
kind = 128;
break;
case 24:
if (curChar == 48)
jjCheckNAddStates(36, 39);
break;
case 25:
if ((0xff000000000000L & l) != 0L)
jjCheckNAddStates(36, 39);
break;
case 26:
if ((0x3fe000000000000L & l) != 0L)
jjCheckNAddStates(40, 43);
break;
case 27:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(40, 43);
break;
case 28:
if (curChar == 48)
jjAddStates(44, 45);
break;
case 30:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(46, 49);
break;
case 33:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 130)
kind = 130;
jjstateSet[jjnewStateCnt++] = 33;
break;
case 34:
if (curChar != 48)
break;
if (kind > 113)
kind = 113;
jjCheckNAddStates(23, 30);
break;
case 35:
if ((0xff000000000000L & l) == 0L)
break;
if (kind > 113)
kind = 113;
jjCheckNAdd(35);
break;
case 36:
if ((0xff000000000000L & l) != 0L)
jjCheckNAddTwoStates(36, 37);
break;
case 38:
if ((0xff000000000000L & l) != 0L)
jjCheckNAddTwoStates(38, 39);
break;
case 40:
if ((0xff000000000000L & l) != 0L)
jjCheckNAddStates(50, 52);
break;
case 45:
if ((0x3fe000000000000L & l) == 0L)
break;
if (kind > 117)
kind = 117;
jjCheckNAddStates(11, 18);
break;
case 46:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 117)
kind = 117;
jjCheckNAdd(46);
break;
case 47:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(47, 48);
break;
case 49:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(49, 50);
break;
case 51:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(53, 55);
break;
case 56:
if (curChar == 48)
jjAddStates(19, 22);
break;
case 58:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 121)
kind = 121;
jjstateSet[jjnewStateCnt++] = 58;
break;
case 60:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 122)
kind = 122;
jjAddStates(56, 57);
break;
case 63:
if ((0x3ff000000000000L & l) != 0L)
jjAddStates(58, 59);
break;
case 66:
if ((0x3ff000000000000L & l) != 0L)
jjAddStates(60, 62);
break;
case 71:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddStates(0, 5);
break;
case 72:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(72, 73);
break;
case 73:
if (curChar != 46)
break;
if (kind > 125)
kind = 125;
jjCheckNAddStates(63, 65);
break;
case 74:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 125)
kind = 125;
jjCheckNAddStates(63, 65);
break;
case 75:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(75, 0);
break;
case 76:
if ((0x3ff000000000000L & l) != 0L)
jjCheckNAddTwoStates(76, 77);
break;
case 78:
if ((0x280000000000L & l) != 0L)
jjCheckNAdd(79);
break;
case 79:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 126)
kind = 126;
jjCheckNAddTwoStates(79, 80);
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 32:
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 130)
kind = 130;
jjCheckNAdd(33);
}
if (curChar == 76)
jjAddStates(66, 67);
break;
case 2:
if ((0x2000000020L & l) != 0L)
jjAddStates(68, 69);
break;
case 5:
if ((0x104000001040L & l) != 0L && kind > 125)
kind = 125;
break;
case 7:
if ((0xffffffffefffffffL & l) != 0L)
jjCheckNAdd(8);
break;
case 9:
if (curChar == 92)
jjAddStates(70, 73);
break;
case 10:
if ((0x54404610000000L & l) != 0L)
jjCheckNAdd(8);
break;
case 16:
if (curChar == 120)
jjCheckNAdd(17);
break;
case 17:
if ((0x7e0000007eL & l) != 0L)
jjCheckNAddTwoStates(17, 8);
break;
case 18:
if (curChar == 88)
jjCheckNAdd(17);
break;
case 20:
if ((0xffffffffefffffffL & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 21:
if (curChar == 92)
jjAddStates(74, 77);
break;
case 22:
if ((0x54404610000000L & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 29:
if (curChar == 120)
jjCheckNAdd(30);
break;
case 30:
if ((0x7e0000007eL & l) != 0L)
jjCheckNAddStates(46, 49);
break;
case 31:
if (curChar == 88)
jjCheckNAdd(30);
break;
case 33:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 130)
kind = 130;
jjCheckNAdd(33);
break;
case 37:
if ((0x100000001000L & l) != 0L && kind > 114)
kind = 114;
break;
case 39:
if ((0x20000000200000L & l) != 0L && kind > 115)
kind = 115;
break;
case 41:
if ((0x100000001000L & l) != 0L && kind > 116)
kind = 116;
break;
case 42:
if ((0x20000000200000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 41;
break;
case 43:
if ((0x20000000200000L & l) != 0L && kind > 116)
kind = 116;
break;
case 44:
if ((0x100000001000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 43;
break;
case 48:
if ((0x20100000201000L & l) != 0L && kind > 118)
kind = 118;
break;
case 50:
if ((0x20000000200000L & l) != 0L && kind > 119)
kind = 119;
break;
case 52:
if ((0x100000001000L & l) != 0L && kind > 120)
kind = 120;
break;
case 53:
if ((0x20000000200000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 52;
break;
case 54:
if ((0x20000000200000L & l) != 0L && kind > 120)
kind = 120;
break;
case 55:
if ((0x100000001000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 54;
break;
case 57:
if ((0x100000001000000L & l) != 0L)
jjCheckNAdd(58);
break;
case 58:
if ((0x7e0000007eL & l) == 0L)
break;
if (kind > 121)
kind = 121;
jjCheckNAdd(58);
break;
case 59:
if ((0x100000001000000L & l) != 0L)
jjCheckNAdd(60);
break;
case 60:
if ((0x7e0000007eL & l) == 0L)
break;
if (kind > 122)
kind = 122;
jjCheckNAddTwoStates(60, 61);
break;
case 61:
if ((0x20100000201000L & l) != 0L && kind > 122)
kind = 122;
break;
case 62:
if ((0x100000001000000L & l) != 0L)
jjCheckNAdd(63);
break;
case 63:
if ((0x7e0000007eL & l) != 0L)
jjCheckNAddTwoStates(63, 64);
break;
case 64:
if ((0x20000000200000L & l) != 0L && kind > 123)
kind = 123;
break;
case 65:
if ((0x100000001000000L & l) != 0L)
jjCheckNAdd(66);
break;
case 66:
if ((0x7e0000007eL & l) != 0L)
jjCheckNAddStates(60, 62);
break;
case 67:
if ((0x100000001000L & l) != 0L && kind > 124)
kind = 124;
break;
case 68:
if ((0x20000000200000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 67;
break;
case 69:
if ((0x20000000200000L & l) != 0L && kind > 124)
kind = 124;
break;
case 70:
if ((0x100000001000L & l) != 0L)
jjstateSet[jjnewStateCnt++] = 69;
break;
case 77:
if ((0x2000000020L & l) != 0L)
jjAddStates(78, 79);
break;
case 80:
if ((0x104000001040L & l) != 0L && kind > 126)
kind = 126;
break;
case 81:
if (curChar == 76)
jjAddStates(66, 67);
break;
default : break;
}
} while(i != startsAt);
}
else
{
int i2 = (curChar & 0xff) >> 6;
long l2 = 1L << (curChar & 077);
MatchLoop: do
{
switch(jjstateSet[--i])
{
case 7:
if ((jjbitVec0[i2] & l2) != 0L)
jjstateSet[jjnewStateCnt++] = 8;
break;
case 20:
if ((jjbitVec0[i2] & l2) != 0L)
jjAddStates(6, 8);
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 82 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
static private final int jjMoveStringLiteralDfa0_1()
{
switch(curChar)
{
case 10:
return jjStopAtPos(0, 8);
default :
return 1;
}
}
static private final int jjMoveStringLiteralDfa0_3()
{
switch(curChar)
{
case 10:
return jjStopAtPos(0, 12);
default :
return 1;
}
}
static private final int jjMoveStringLiteralDfa0_2()
{
switch(curChar)
{
case 42:
return jjMoveStringLiteralDfa1_2(0x400L);
default :
return 1;
}
}
static private final int jjMoveStringLiteralDfa1_2(long active0)
{
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return 1;
}
switch(curChar)
{
case 47:
if ((active0 & 0x400L) != 0L)
return jjStopAtPos(1, 10);
break;
default :
return 2;
}
return 2;
}
static final int[] jjnextStates = {
72, 73, 75, 0, 76, 77, 20, 21, 23, 7, 9, 46, 47, 48, 49, 50,
51, 53, 55, 57, 59, 62, 65, 35, 36, 37, 38, 39, 40, 42, 44, 1,
2, 5, 16, 18, 20, 21, 25, 23, 20, 21, 27, 23, 29, 31, 20, 21,
30, 23, 40, 42, 44, 51, 53, 55, 60, 61, 63, 64, 66, 68, 70, 74,
2, 5, 6, 19, 3, 4, 10, 11, 13, 15, 22, 24, 26, 28, 78, 79,
};
public static final String[] jjstrLiteralImages = {
"", null, null, null, null, null, null, null, null, null, null, null, null,
null, "\173", "\175", "\133", "\135", "\50", "\51", "\72\72", "\72", "\73", "\54",
"\77", "\56\56\56", "\75", "\52\75", "\57\75", "\45\75", "\53\75", "\55\75",
"\74\74\75", "\76\76\75", "\46\75", "\136\75", "\174\75", "\174\174", "\46\46", "\174",
"\136", "\46", "\75\75", "\41\75", "\74", "\76", "\74\75", "\76\75", "\74\74",
"\76\76", "\53", "\55", "\52", "\57", "\45", "\53\53", "\55\55", "\176", "\41", "\56",
"\55\76", "\56\52", "\55\76\52", "\141\165\164\157", "\142\162\145\141\153",
"\143\141\163\145", "\143\141\164\143\150", "\143\150\141\162", "\143\157\156\163\164",
"\143\157\156\164\151\156\165\145", "\144\145\146\141\165\154\164", "\144\145\154\145\164\145", "\144\157",
"\144\157\165\142\154\145", "\145\154\163\145", "\145\156\165\155", "\145\170\164\145\162\156",
"\146\154\157\141\164", "\146\157\162", "\146\162\151\145\156\144", "\147\157\164\157", "\151\146",
"\151\156\154\151\156\145", "\151\156\164", "\154\157\156\147", "\156\145\167",
"\160\162\151\166\141\164\145", "\160\162\157\164\145\143\164\145\144", "\160\165\142\154\151\143",
"\162\145\144\145\143\154\141\162\145\144", "\162\145\147\151\163\164\145\162", "\162\145\164\165\162\156",
"\163\150\157\162\164", "\163\151\147\156\145\144", "\163\151\172\145\157\146",
"\163\164\141\164\151\143", "\163\164\162\165\143\164", "\143\154\141\163\163",
"\163\167\151\164\143\150", "\164\145\155\160\154\141\164\145", "\164\150\151\163", "\164\162\171",
"\164\171\160\145\144\145\146", "\165\156\151\157\156", "\165\156\163\151\147\156\145\144",
"\166\151\162\164\165\141\154", "\166\157\151\144", "\166\157\154\141\164\151\154\145",
"\167\150\151\154\145", "\157\160\145\162\141\164\157\162", "\164\162\165\145",
"\146\141\154\163\145", "\164\150\162\157\167", null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, "\146\151\156\141\154\154\171", null, };
public static final String[] lexStateNames = {
"DEFAULT",
"IN_LINE_COMMENT",
"IN_COMMENT",
"PREPROCESSOR_OUTPUT",
};
public static final int[] jjnewLexState = {
-1, -1, -1, -1, -1, 1, 2, 3, 0, -1, 0, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1,
};
static final long[] jjtoToken = {
0xffffffffffffc001L, 0xffffffffffffffffL, 0x7L,
};
static final long[] jjtoSkip = {
0x15feL, 0x0L, 0x0L,
};
static final long[] jjtoMore = {
0x2a00L, 0x0L, 0x0L,
};
static protected SimpleCharStream input_stream;
static private final int[] jjrounds = new int[82];
static private final int[] jjstateSet = new int[164];
static protected char curChar;
public CPPParserTokenManager(SimpleCharStream stream)
{
if (input_stream != null)
throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
input_stream = stream;
}
public CPPParserTokenManager(SimpleCharStream stream, int lexState)
{
this(stream);
SwitchTo(lexState);
}
static public void ReInit(SimpleCharStream stream)
{
jjmatchedPos = jjnewStateCnt = 0;
curLexState = defaultLexState;
input_stream = stream;
ReInitRounds();
}
static private final void ReInitRounds()
{
int i;
jjround = 0x80000001;
for (i = 82; i-- > 0;)
jjrounds[i] = 0x80000000;
}
static public void ReInit(SimpleCharStream stream, int lexState)
{
ReInit(stream);
SwitchTo(lexState);
}
static public void SwitchTo(int lexState)
{
if (lexState >= 4 || lexState < 0)
throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
else
curLexState = lexState;
}
static protected Token jjFillToken()
{
Token t = Token.newToken(jjmatchedKind);
t.kind = jjmatchedKind;
String im = jjstrLiteralImages[jjmatchedKind];
t.image = (im == null) ? input_stream.GetImage() : im;
t.beginLine = input_stream.getBeginLine();
t.beginColumn = input_stream.getBeginColumn();
t.endLine = input_stream.getEndLine();
t.endColumn = input_stream.getEndColumn();
return t;
}
static int curLexState = 0;
static int defaultLexState = 0;
static int jjnewStateCnt;
static int jjround;
static int jjmatchedPos;
static int jjmatchedKind;
public static Token getNextToken()
{
int kind;
Token specialToken = null;
Token matchedToken;
int curPos = 0;
EOFLoop :
for (;;)
{
try
{
curChar = input_stream.BeginToken();
}
catch(java.io.IOException e)
{
jjmatchedKind = 0;
matchedToken = jjFillToken();
return matchedToken;
}
for (;;)
{
switch(curLexState)
{
case 0:
try { input_stream.backup(0);
while (curChar <= 32 && (0x100000600L & (1L << curChar)) != 0L)
curChar = input_stream.BeginToken();
}
catch (java.io.IOException e1) { continue EOFLoop; }
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_0();
break;
case 1:
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_1();
if (jjmatchedPos == 0 && jjmatchedKind > 9)
{
jjmatchedKind = 9;
}
break;
case 2:
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_2();
if (jjmatchedPos == 0 && jjmatchedKind > 11)
{
jjmatchedKind = 11;
}
break;
case 3:
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_3();
if (jjmatchedPos == 0 && jjmatchedKind > 13)
{
jjmatchedKind = 13;
}
break;
}
if (jjmatchedKind != 0x7fffffff)
{
if (jjmatchedPos + 1 < curPos)
input_stream.backup(curPos - jjmatchedPos - 1);
if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
{
matchedToken = jjFillToken();
if (jjnewLexState[jjmatchedKind] != -1)
curLexState = jjnewLexState[jjmatchedKind];
return matchedToken;
}
else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
{
if (jjnewLexState[jjmatchedKind] != -1)
curLexState = jjnewLexState[jjmatchedKind];
continue EOFLoop;
}
if (jjnewLexState[jjmatchedKind] != -1)
curLexState = jjnewLexState[jjmatchedKind];
curPos = 0;
jjmatchedKind = 0x7fffffff;
try {
curChar = input_stream.readChar();
continue;
}
catch (java.io.IOException e1) { }
}
int error_line = input_stream.getEndLine();
int error_column = input_stream.getEndColumn();
String error_after = null;
boolean EOFSeen = false;
try { input_stream.readChar(); input_stream.backup(1); }
catch (java.io.IOException e1) {
EOFSeen = true;
error_after = curPos <= 1 ? "" : input_stream.GetImage();
if (curChar == '\n' || curChar == '\r') {
error_line++;
error_column = 0;
}
else
error_column++;
}
if (!EOFSeen) {
input_stream.backup(1);
error_after = curPos <= 1 ? "" : input_stream.GetImage();
}
throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
}
}
}
}